<html>
<head>
<title>My Form</title>
	<link rel="stylesheet" type="text/css" href="<?=base_url();?>public/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<?=base_url();?>public/css/bootstrap-theme.min.css">
	<link rel="stylesheet" type="text/css" href="<?=base_url();?>public/css/style.css">
</head>
<body>
<div class="container">
  <div class="row">
    <div class="col-md-4 col-md-offset-4">
      <div style="margin-top:150px;" class="panel panel-warning">
        <div style="text-align:center; font-size:20px;" class="panel-heading"><b>登　陆</b></div>
          <div class="panel-body">
            <form class="form-horizontal" action="" method="post">
              <div  class="form-group">
                <label class="col-sm-3 control-label">用户名：</label>
                <div class="col-sm-9">
                  <input type="text" name="username" value="<?=set_value('username')?>" class="form-control" placeholder="用户名">
                
                  <!-- <?php //echo form_error('username');?> --><!-- 全局的修改定界符 -->
                  <?php echo form_error('username', '<div class="error">', '</div>'); ?><!-- 单独的修改定界符 -->
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-3 control-label">密　码：</label>
                <div class="col-sm-9">
                  <input type="password" name="password" value="<?=set_value('password')?>" class="form-control" placeholder="密码">
                  <!-- <?php //echo form_error('password');?> --><!-- 全局的修改定界符 -->
                  <?php echo form_error('password', '<div class="error">', '</div>'); ?><!-- 单独的修改定界符 -->
                  <div class="checkbox">
                    <label>
                      <input type="checkbox"> 记住密码
                    </label>
                  </div>
                </div>
              </div>
              <button type="submit" class="btn btn-block btn-success">提　交</button>            
            </form>
          </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>